package offer;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;

public class SessionMamage {

	public static SessionObj getSessionObj(HttpServletRequest request)throws ServletException, IOException {
		request.setCharacterEncoding("utf-8");
		SessionObj sessionObj = (SessionObj)request.getSession().getAttribute("sessionObj");
		return sessionObj;
	}
	
	public static void setSessionObj(SessionObj sessionObj ,HttpServletRequest request)throws ServletException, IOException {
		request.getSession().setAttribute("sessionObj", sessionObj);
	}
}
